<?php

use think\migration\Migrator;
use think\migration\db\Column;

class AltrerAgentChannelAddIsSys extends Migrator
{
    public function up()
    {

        $sql = <<<SQL
      ALTER TABLE `agent_channel` ADD COLUMN `is_sys`  tinyint(1) NOT NULL  DEFAULT '0' COMMENT '是否系统生成 0否 1是';
SQL;
        $this->execute($sql);
    }

    public function down()
    {
        $this->table('agent_channel')->removeColumn('is_sys');
    }
}
